<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="<%=request.getContextPath() %>/js/Angularjs/angular.min.js"></script>
<script src="<%=request.getContextPath() %>/js/Angularjs/angular-messages.min.js"></script>
<script src="<%=request.getContextPath() %>/js/system/login.js"></script>
<title>Insert title here</title>
</head>
<body <!-- ng-controller="loginCtrl" ng-app="loginApp" -->>
	<form action="doSecurity" method="post">
		用户名<input type="text" name="name"></input>
		密码<input type="password" name="password"/>
		<button type="submit">登录</button>
	</form> 
	<% if(session.getAttribute("SPRING_SECURITY_LAST_EXCEPTION")!=null){
	    out.print(((Exception)session.getAttribute("SPRING_SECURITY_LAST_EXCEPTION")).getMessage());
	} %>
		
	<!-- <form name="login" novalidate ng-submit="subform()">
		用户名 <input type="text" required name="name" ng-model="user.name"/>
		<div class="error" ng-messages="login.name.$error">
			<div ng-message="required">用户名不可为空</div>
		</div>
		密码 <input type="password" required name="password" ng-model="user.password"/>
		<div class="error" ng-messages="login.password.$error">
			<div ng-message="required">密码不可为空</div>
		</div>
		<button type="submit" ng-disabled="login.$invalid"> 登录 </button>
	</form>
	
	<div ng-if="!fail">
		{{fail}}
	</div>-->
</body>
</html>